package com.dayang.framework.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: dayang
 * @since: 2024/6/13
 * @description: 通用异常状态码
 */
@Getter
@AllArgsConstructor
public enum CommonResponseCodeEnum implements BaseExceptionInterface{
    SYSTEM_ERROR("COMMON-10000", "出错啦，后台小哥正在努力修复中..."),
    PARAM_NOT_VALID("COMMON-10001", "参数错误"),
    VERIFICATION_CODE_SEND_FREQUENTLY("COMMON-10002", "请求太频繁，请稍后再试"),
    ;

    /**
     * 异常码
     */
    private final String errorCode;

    /**
     * 错误信息
     */
    private final String errorMessage;
}
